<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>详细</title>

</head>
<body>


	<div class="container-fluid">
		<div class="modal-header">
			<button type="button" class="close" data-ng-click="Model.cancel()" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
			<h5>{{Model.title}}</h5>
		</div>
		<div class="modal-body">

			<div class="container-fluid" style="padding: 0px;">
			
			<uib-tabset> 
			<uib-tab heading="基本信息"> <br>
				<form class="form-horizontal" name="inventory_fileItem_single_form">
					<div class="row">
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">物料编码</label>
								<div class="col-sm-8">
									<input type="text" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].itemNo.value"
										placeHolder="为空则系统会自动编码" name="itemNo">
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">日期</label>
								<div class="col-sm-8">
									<input type="text" class="form-control" name="orderDate"
										simple-datepicker orientation="bottom auto" 
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].orderDate.value"
										placeholder="yyyy-MM-dd" required>
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">档案状态</label>
								<div class="col-sm-8">
									<input type="checkbox" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].status.value"
										bootstrap-switch data-size="small"
										on-color="primary" off-color="danger" on-text="档案有效" off-text="档案失效"
										data-ng-true-value="'open'" data-ng-false-value="'close'">
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-sm-8">
							<div class="form-group form-group-sm has-warning">
								<label for="inventory_fileItem_single_form_itemName"
									class="col-sm-2 control-label">名称</label>
								<div class="col-sm-10">
									<input type="text" class="form-control" 
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].itemName.value"
										id="inventory_fileItem_single_form_itemName" name="itemName" required>
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">存货管理</label>
								<div class="col-sm-8">
									<input type="checkbox" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].stockFlag.value"
										data-ng-true-value="1" data-ng-false-value="0">
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-sm-8">
							<div class="form-group form-group-sm has-warning">
								<label for="inventory_fileItem_single_form_itemProperty"
									class="col-sm-2 control-label">规格型号</label>
								<div class="col-sm-10">
									<input type="text" class="form-control" 
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].itemProperty.value"
										id="inventory_fileItem_single_form_itemProperty" name="itemProperty"
										>
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">用于销售</label>
								<div class="col-sm-8">
									<input type="checkbox" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].forSale.value"
										data-ng-true-value="'Y'" data-ng-false-value="'N'">
								</div>
							</div>
						</div>
					</div>
					
					<div class="row">
						<div class="col-sm-4">
							<div class="form-group form-group-sm has-warning">
								<label for="inventory_fileItem_single_form_unitName"
									class="col-sm-4 control-label">单位</label>
								<div class="col-sm-8">
									<input type="text" class="form-control" 
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].unitName.value"
										id="inventory_fileItem_single_form_unitName" name="unitName"
										required>
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm has-warning">
								<label class="col-sm-4 control-label">来源属性</label>
								<div class="col-sm-8">
									<item-process 
										target-data="Model.dataMaster"
										target-label="processLabel"
										target-value="process"
										row-index="Model.dataMaster.getCurrentIndex()"
										vertical="dropdown"
										horizon="right"
										value-show="false">
									</item-process>
								</div>
							</div>

						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">生产耗用</label>
								<div class="col-sm-8">
									<input type="checkbox" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].forUsed.value"
										data-ng-true-value="'Y'" data-ng-false-value="'N'">
								</div>
							</div>
						</div>
						
					</div>
					<div class="row">
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">低阶码</label>
								<div class="col-sm-8">
									<input type="text" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].levelCode.value"
										required>
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">排序号</label>
								<div class="col-sm-8">
									<div class="input-group">
									<input type="text" class="form-control" 
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].sortNo.value">
										<span class="input-group-btn">
											<button class="btn btn-default btn-sm" data-ng-click="Model.triggerGetSortNoClick()" title="自动生成最大排序号" >
												<span class="glyphicon glyphicon-th-list" aria-hidden="true"></span>
											</button>
										</span>
									</div>
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">入库登记</label>
								<div class="col-sm-8">
									<input type="checkbox" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].checkin.value"
										data-ng-true-value=1 data-ng-false-value=0>
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">可配置</label>
								<div class="col-sm-8">
									<input type="checkbox" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].configType.value"
										data-size="small" data-ng-true-value=1 data-ng-false-value=0>
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">配置物料</label>
								<div class="col-sm-8">
									<div class="input-group">
										<input type="text" class="form-control" data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].fParentNo.value" disabled/> 
										<span class="input-group-btn">
											<button class="btn btn-default btn-sm" data-ng-click="Model.triggerItemNoClick()" ng-disabled="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].configType.value==1">
												<span class="glyphicon " data-ng-class="{'glyphicon-th-list':(Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].fParent.value==null || Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].fParent.value==''),'glyphicon-remove':!(Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].fParent.value==null || Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].fParent.value=='')}" aria-hidden="true"></span>
											</button>
										</span>
									</div>
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">商品条码</label>
								<div class="col-sm-8">
									<input type="text" class="form-control" 
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].barcode.value">
								</div>
							</div>
						</div>
					</div>

				</form>
			
				<uib-tabset> 
				<uib-tab heading="基本信息"><br>
				<form class="form-horizontal" name="inventory_fileItem_single_form_storage">
					<div class="row">
						
						<div class="col-sm-8">
							<div class="form-group form-group-sm">
								<label for="inventory_fileItem_single_form_floorNo"
									class="col-sm-2 control-label">默认仓库</label>
								<div class="col-sm-10">
									<div class="input-group">
									<input type="text" class="form-control" ng-style="$root.requiredColor"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].floorNo.value"
										id="inventory_fileItem_single_form_floorNo"
										name="floorNo" readonly>
									<span class="input-group-btn">
						            	<button class="btn btn-default btn-sm" ng-click="Model.triggerStorageNoClick()"><span class="glyphicon glyphicon-th-list" aria-hidden="true"></span></button> 
						            </span> 
									</div><!-- /input-group -->
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">成本计价</label>
								<div class="col-sm-8">
									<select class="form-control"  
										data-ng-options="o.costingType as o.costingTypeLabel for o in dataCostingType"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].costingType.value">
									</select>
								</div>
							</div>
						</div>
					</div>
					<div class="row" ng-if="false">
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label for="inventory_fileItem_single_form_storageNo"
									class="col-sm-4 control-label">仓库代码</label>
								<div class="col-sm-8">
									<input type="text" class="form-control" 
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].storageNo.value"
										id="inventory_fileItem_single_form_storageNo" name="storageNo"
										readonly>
								</div>
							</div>
						</div>
						
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label for="inventory_fileItem_single_form_storageName"
									class="col-sm-4 control-label">仓库名称</label>
								<div class="col-sm-8">
									<input type="text" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].storageName.value"
										id="inventory_fileItem_single_form_storageName"
										name="storageName" readonly>
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">仓库类型</label>
								<div class="col-sm-8">
									<input type="text" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].storageTypeLabel.value"
										readonly>
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">仓库分类</label>
								<div class="col-sm-8">
									<div class="input-group">
										<input type="text" class="form-control" data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].groupCKLabel.value" disabled required/> 
										<span class="input-group-btn">
											<button class="btn btn-default btn-sm" data-ng-click="Model.triggerGroupCKFLClick()">
												<span class="glyphicon " data-ng-class="{'glyphicon-th-list':(Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].groupCK.value==null || Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].groupCK.value==''),'glyphicon-remove':!(Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].groupCK.value==null || Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].groupCK.value=='')}" aria-hidden="true"></span>
											</button>
										</span>
									</div>
								</div>
							</div>
						</div>
						
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">商品分类</label>
								<div class="col-sm-8">
									<div class="input-group">
										<input type="text" class="form-control" data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].groupSPLabel.value" disabled required/> 
										<span class="input-group-btn">
											<button class="btn btn-default btn-sm" data-ng-click="Model.triggerGroupSPFLClick()">
												<span class="glyphicon " data-ng-class="{'glyphicon-th-list':(Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].groupSP.value==null || Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].groupSP.value==''),'glyphicon-remove':!(Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].groupSP.value==null || Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].groupSP.value=='')}" aria-hidden="true"></span>
											</button>
										</span>
									</div>
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">会计分类</label>
								<div class="col-sm-8">
									<div class="input-group">
										<input type="text" class="form-control" data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].groupKJLabel.value" disabled required/> 
										<span class="input-group-btn">
											<button class="btn btn-default btn-sm" data-ng-click="Model.triggerGroupKJFLClick()">
												<span class="glyphicon " data-ng-class="{'glyphicon-th-list':(Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].groupKJ.value==null || Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].groupKJ.value==''),'glyphicon-remove':!(Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].groupKJ.value==null || Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].groupKJ.value=='')}" aria-hidden="true"></span>
											</button>
										</span>
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">税率</label>
								<div class="col-sm-8">
									<input type="number" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].taxRate.value"
										name="taxRate" required>
								</div>
							</div>
						</div>
						<div class="col-sm-4">
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">库存数量</label>
								<div class="col-sm-8">
									<input type="text" class="form-control" readonly
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].itemQuantityL.value">
								</div>
							</div>
						</div>
					</div>
					<div class="row" ng-show="false">
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">图片路径</label>
								<div class="col-sm-8">
									<input type="text" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].images.value"
										name="images">
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">批号管理</label>
								<div class="col-sm-8">
									<input type="checkbox" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].batchNo.value"
										data-ng-true-value="null" data-ng-false-value="'********************'">
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">保质期</label>
								<div class="col-sm-8">
									<input type="checkbox" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].qualityPeriod.value"
										data-ng-true-value="1" data-ng-false-value="0">
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">单位成本</label>
								<div class="col-sm-8">
									<input type="text" class="form-control" readonly
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].costingAmountPer.value">
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">有效天数</label>
								<div class="col-sm-8">
									<input type="number" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].validDays.value"
										disabled required>
								</div>
							</div>
						</div>
						<div class="col-sm-4">

							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">复检天数</label>
								<div class="col-sm-8">
									<input type="number" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].checkoutAgainDays.value"
										disabled required>
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">库存金额</label>
								<div class="col-sm-8">
									<input type="text" class="form-control" readonly
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].costingAmount.value">
								</div>
							</div>
						</div>
						<div class="col-sm-4" ng-if="false">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">序列号</label>
								<div class="col-sm-8">
									<input type="checkbox" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].storeNo.value"
										bootstrap-switch data-size="small"
										data-ng-true-value="null" data-ng-false-value="'********************'">
								</div>
							</div>
						</div>
					</div>
				</form>
				
				</uib-tab>
				<uib-tab heading="采购信息"><br>
				<form class="form-horizontal" name="inventory_fileItem_single_form_stock">
					<div class="row">
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">单价含税</label>
								<div class="col-sm-8">
									<input type="checkbox" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].purchaseTaxType.value"
										data-size="small" data-ng-true-value=1 data-ng-false-value=0>
								</div>
							</div>
						</div>
						
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">采购单价</label>
								<div class="col-sm-8">
									<input type="number" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].purchasePrice.value"
										name="purchasePrice" required>
								</div>
							</div>
						</div>
					</div>
					<div class="row">

						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">供应商</label>
								<div class="col-sm-8">
									<div class="input-group">
										<input type="text" class="form-control" 
											data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].providerNo.value"
											name="providerNo"
											disabled required/> <span
											class="input-group-btn">
											<button class="btn btn-default btn-sm"
												data-ng-disabled="Model.dataMaster.readonly();"
												data-ng-click="Model.triggerProviderNoClick()">
												<span class="glyphicon "
													data-ng-class="{'glyphicon-th-list':(Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].providerNo.value==null || Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].providerNo.value==''),'glyphicon-remove':!(Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].providerNo.value==null || Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].providerNo.value=='')}"
													aria-hidden="true"></span>
											</button>
										</span>
									</div>
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">简称</label>
								<div class="col-sm-8">
									<input type="text" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].providerShortName.value"
										name="providerShortName" disabled/>
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-sm-8">
							<div class="form-group form-group-sm">
								<label class="col-sm-2 control-label">供方全称</label>
								<div class="col-sm-10">
									<input type="text" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].providerName.value"
										name="providerName"
										data-ng-readonly="true" /> 
								</div>
							</div>

						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">提前期</label>
								<div class="col-sm-8">
									<input type="number" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].leadTime.value"
										name="leadTime" required>
								</div>
							</div>
						</div>
									</div>
				</form>
				
				</uib-tab> 
				<uib-tab heading="销售信息"><br>
				<form class="form-horizontal" name="inventory_fileItem_single_form_sale">
					<div class="row">
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">单价含税</label>
								<div class="col-sm-8">
									<input type="checkbox" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].saleTaxType.value"
										data-size="small" data-ng-true-value=1 data-ng-false-value=0>
								</div>
							</div>
						</div>
						
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">销售单价</label>
								<div class="col-sm-8">
									<input type="number" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].salePrice.value"
										name="salePrice" required>
								</div>
							</div>
						</div>
					</div>
				</form>
				</uib-tab> 
				<uib-tab heading="生产信息"><br>
				<form class="form-horizontal" name="inventory_fileItem_single_form_produce">
					<div class="row">
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">单价含税</label>
								<div class="col-sm-8">
									<input type="checkbox" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].processTaxType.value"
										data-size="small" data-ng-true-value=1 data-ng-false-value=0>
								</div>
							</div>
						</div>
						
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">委外单价</label>
								<div class="col-sm-8">
									<input type="number" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].processPrice.value"
										name="processPrice" required>
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">MPS件</label>
								<div class="col-sm-8">
									<input type="checkbox" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].mpsFlag.value"
										data-ng-true-value="1" data-ng-false-value="0">
								</div>
							</div>
						</div>
						
					</div>
					<div class="row">

						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">工作中心</label>
								<div class="col-sm-8">
									<div class="input-group">
										<input type="text" class="form-control" 
											data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].workcenterNo.value"
											name="workcenterNo"
											disabled required/> <span
											class="input-group-btn">
											<button class="btn btn-default btn-sm"
												data-ng-disabled="Model.dataMaster.readonly();"
												data-ng-click="Model.triggerWorkcenterNoClick()">
												<span class="glyphicon "
													data-ng-class="{'glyphicon-th-list':(Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].workcenterNo.value==null || Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].workcenterNo.value==''),'glyphicon-remove':!(Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].workcenterNo.value==null || Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].workcenterNo.value=='')}"
													aria-hidden="true"></span>
											</button>
										</span>
									</div>
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">名称</label>
								<div class="col-sm-8">
									<input type="text" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].workcenterName.value"
										name="workcenterName" disabled/>
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">工艺路线</label>
								<div class="col-sm-8">
									<input type="text" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].routingNo.value"
										name="routingNo" /> 
								</div>
							</div>

						</div>
					</div>
					
				</form>
				
				</uib-tab>
				<uib-tab heading="会计信息"><br>
				<form class="form-horizontal" name="inventory_fileItem_single_form_costing">
					<div class="row">
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label" title="标准单位材料成本">材料成本</label>
								<div class="col-sm-8">
									<input type="number" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].materialStandardPer.value"
										required>
								</div>
							</div>
						</div>
						<div class="col-sm-4" ng-if="false">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label" title="实际单位材料成本">实际材料</label>
								<div class="col-sm-8">
									<input type="number" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].materialAmountPer.value"
										readonly>
								</div>
							</div>
						</div>
						<div class="col-sm-4">
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">工时底数</label>
								<div class="col-sm-8">
									<input type="number" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].workingHourBase.value"
										required>
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label" title="标准单位人工成本">人工成本</label>
								<div class="col-sm-8">
									<input type="number" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].workingStandardPer.value"
										required>
								</div>
							</div>
						</div>
						<div class="col-sm-4" ng-if="false">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label" title="实际单位人工成本">实际人工</label>
								<div class="col-sm-8">
									<input type="number" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].workingAmountPer.value"
										readonly>
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label" title="">本阶人工</label>
								<div class="col-sm-8">
									<input type="number" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].workingStandardPerThis.value"
										required>
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">标准工时</label>
								<div class="col-sm-8">
									<input type="number" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].workingHourPlan.value"
										required>
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label" title="标准单位制造费用">制造费用</label>
								<div class="col-sm-8">
									<input type="number" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].manufactStandardPer.value"
										required>
								</div>
							</div>
						</div>
						<div class="col-sm-4" ng-if="false">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label" title="实际单位制造费用">实际制费</label>
								<div class="col-sm-8">
									<input type="number" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].manufactAmountPer.value"
										readonly>
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">本阶制费</label>
								<div class="col-sm-8">
									<input type="number" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].manufactStandardPerThis.value"
										required>
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">标准机时</label>
								<div class="col-sm-8">
									<input type="number" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].machineHourPlan.value"
										required>
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label" title="标准单位加工费用">加工费用</label>
								<div class="col-sm-8">
									<input type="number" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].processStandardPer.value"
										required>
								</div>
							</div>
						</div>
						<div class="col-sm-4" ng-if="false">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label" title="实际单位加工费用">实际加工</label>
								<div class="col-sm-8">
									<input type="number" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].processAmountPer.value"
										readonly>
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">本阶加工</label>
								<div class="col-sm-8">
									<input type="number" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].processStandardPerThis.value"
										required>
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label" title="标准单位成本">单位成本</label>
								<div class="col-sm-8">
									<input type="number" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].costingStandardPer.value"
										readonly>
								</div>
							</div>
						</div>
						<div class="col-sm-4" ng-if="false">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label" title="实际单位成本">实际成本</label>
								<div class="col-sm-8">
									<input type="number" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].costingAmountPer.value"
										readonly>
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">本阶成本</label>
								<div class="col-sm-8">
									<input type="number" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].costingStandardPerThis.value"
										readonly>
								</div>
							</div>
						</div>
					</div>
					
				</form>
				</uib-tab> 
				<uib-tab heading="质量信息"><br>
				<form class="form-horizontal" name="inventory_fileItem_single_form_quality">
					<div class="row">
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">检验方式</label>
								<div class="col-sm-8">
									<quality-type 
										target-data="Model.dataMaster"
										target-label="qualityTypeLabel"
										target-value="qualityType"
										row-index="Model.dataMaster.getCurrentIndex()"
										vertical="dropdown"
										horizon="right"
										value-show="false">
									</quality-type>
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">检验天数</label>
								<div class="col-sm-8">
									<input type="number" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].checkoutDays.value"
										 required>
								</div>
							</div>
						</div>
					</div>
						
					
				</form>
				</uib-tab>
				<uib-tab heading="重量/容积"><br>
				<form class="form-horizontal" name="inventory_fileItem_single_form_quality">
					<div class="row">
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">重量kg</label>
								<div class="col-sm-8">
									<input type="number" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].itemWeight.value"
										name="itemWeight">
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">体积m3</label>
								<div class="col-sm-8">
									<input type="text" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].itemSize.value"
										name="itemSize">
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">包装重量</label>
								<div class="col-sm-8">
									<input type="number" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].orderWeight.value"
										name="itemWeight">
								</div>
							</div>
						</div>
						<div class="col-sm-4">
							<div class="form-group form-group-sm">
								<label class="col-sm-4 control-label">包装体积</label>
								<div class="col-sm-8">
									<input type="text" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].orderSize.value"
										name="itemSize">
								</div>
							</div>
						</div>
						<div class="col-sm-4">
						</div>
					</div>
						
					
				</form>
				</uib-tab>
				<uib-tab heading="备注"><br>
				<form class="form-horizontal" name="inventory_fileItem_single_form_comments">
					<div class="row">
						<div class="col-sm-12">
							<div class="form-group">
								<label for="inventory_fileItem_single_form_comments"
									class="col-sm-1 control-label">备注</label>
								<div class="col-sm-11">
									<textarea rows="3" class="form-control"
										data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].comments.value"
										id="inventory_fileItem_single_form_comments">
									</textarea>
								</div>
							</div>

						</div>
					</div>
				</form>
				</uib-tab> 
				</uib-tabset>
				</uib-tab>
				
				<uib-tab heading="图片"> <br>
				<form class="form-horizontal" name="inventory_fileItem_single_form_imageurl">
					<div class="row">
						<div class="col-sm-4">
					<label>封面图片</label>
							<attachments permission="public"
								data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].imageurl.value"
								cantedit="Model.dataMaster.readonly()" 
								template-url="js/_directives/attachimages.html "
								width="250px" height="154px" cols=1 count=1>
							</attachments>	
						</div>
					</div>
					<div class="row" style="margin-top:20px;">
						<div class="col-sm-12">

							<label>商品多图</label>
							<attachments permission="public"
								data-ng-model="Model.dataMaster.rows[Model.dataMaster.getCurrentIndex()].images.value"
								cantedit="Model.dataMaster.readonly()" 
								template-url="js/_directives/attachimages.html "
								cols=6 count=6 >
							</attachments>	

						</div>
					</div>
				</form>

				</uib-tab>
				
				<uib-tab heading="安全库存" ng-if="false"> 
				<form class="form-horizontal" name="inventory_fileItem_single_form_storageItem">
						<!-- 子表按钮菜单 -->
						<div class="row">
							<div class="col-sm-12">

								<nav class="nav">
									<ul class="pagination navbar-left buttonBar">
										<li>
											<div class="btn-group" role="toolbar">
												<button type="button" class="btn btn-default" data-ng-click="Model.addrow2()">
													<span class="glyphicon glyphicon-plus"></span> 增加
												</button>
												<button type="button" class="btn btn-default" data-ng-click="Model.delrow2()" ng-disabled="Model.dataDetail2.getCurrentID()==null">
													<span class="glyphicon glyphicon-minus"></span> 删除
												</button>

											</div>
										</li>
									</ul>
								</nav>

							</div>
						</div>

						<!-- 子表 -->
						<div class="row">
							<div class="col-sm-12">

							<div class="table-responsive" style="height:350px;">
								<table class="table table-hover table-condensed"
									data-readonly={{Model.dataMaster.readonly()}}
									style="cellpadding: 0px; cellspacing: 0px;">
									<thead>
										<tr>
											<th colspan="99"  style="padding:0px;">
											</th>
										</tr>

										<tr>
											<th></th>

											<th>#</th>
											<th>仓库类型</th>
											<th>库存地</th>
											<th>库存量</th>
											<th>库存下限</th>
											<th>库存上限</th>
											<th>最近入库</th>
											<th>最近出库</th>
										</tr>
									</thead>
									<tbody>
										<tr data-ng-show="row.userdata.recordState!='delete'"
											data-ng-class="{true:'active'}[Model.dataDetail2.currentIndex==Model.dataDetail2.rows.indexOf(row)]"
											data-ng-click="Model.dataDetail2.onRowClick(row,$event)"
											data-ng-repeat="row in Model.dataDetail2.rows">
											<td style="width: 10px;"><span
												data-ng-show="Model.dataDetail2.currentIndex==Model.dataDetail2.rows.indexOf(row)"
												class="glyphicon glyphicon-hand-right" aria-hidden="true"></span></td>

											<td style="width: 20px;">{{Model.dataDetail2.rows.indexOf(row)+1}}</td>

											<td style="width: 100px;"><span data-ng-bind="row.storageTypeLabel.value"></span></td>
											<td style="width: 200px;"><span data-ng-bind="row.floorNo.value"></span></td>
											<td style="width: 100px;"><span data-ng-bind="row.quantityL.value"></span></td>
											
											<td style="width: 100px;" td-input="number" data-ng-model="row.minQuantity.value">
												<span data-ng-bind="row.minQuantity.value"></span>
											</td>
											<td style="width: 100px;" td-input="number" data-ng-model="row.maxQuantity.value">
												<span data-ng-bind="row.maxQuantity.value"></span>
											</td>
											
											<td style="width: 100px;"><span data-ng-bind="row.dateIn.value"></span></td>
											<td style="width: 100px;"><span data-ng-bind="row.dateOut.value"></span></td>
				
										</tr>

									</tbody>
									<tfoot>
										<tr>
											<th colspan="99"  style="padding:0px;">
											</th>
										</tr>
									</tfoot>
								</table>
							</div>

							</div>
						</div>
				</form>
				</uib-tab>
				</uib-tabset>

			</div>

			<pre hidden="true">
			[inventory_fileItem_single_form.systemCode.$dirty]:{{inventory_fileItem_single_form.systemCode.$dirty}}
			[inventory_fileItem_single_form.systemCode.$valid]:{{inventory_fileItem_single_form.systemCode.$valid}}
			[inventory_fileItem_single_form.systemCode.$error]:{{inventory_fileItem_single_form.systemCode.$error}}
			</pre>


		</div>
		<!-- modal-body结束 -->

		<div class="modal-footer">
			<button class="btn btn-primary"	data-ng-click="Model.ok()"
				data-ng-disabled="inventory_fileItem_single_form.orderDate.$dirty && inventory_fileItem_single_form.orderDate.$invalid 
			|| inventory_fileItem_single_form.orderDate.$error.required 
			|| inventory_fileItem_single_form.itemName.$dirty && inventory_fileItem_single_form.itemName.$invalid 
			|| inventory_fileItem_single_form.itemName.$error.required 
			|| inventory_fileItem_single_form.unitName.$dirty && inventory_fileItem_single_form.unitName.$invalid 
			|| inventory_fileItem_single_form.unitName.$error.required 
			|| inventory_fileItem_single_form_storage.floorNo.$dirty && inventory_fileItem_single_form_storage.floorNo.$invalid 
			|| inventory_fileItem_single_form_storage.floorNo.$error.required 
			"
			>确定</button>
			<button class="btn btn-warning" data-ng-click="Model.cancel()">取消</button>
		</div>

	</div>




</body>
</html>